package com.bk.ouat.dao;

import java.util.List;

import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import com.bk.ouat.dto.StoryDto;

@Repository
public class StoryDao extends SqlSessionDaoSupport{

	public StoryDto detail(StoryDto story) {
		return (StoryDto)getSqlSession().selectOne("storyQuery.detail", story);
	}

	public List<StoryDto> listByCategoryId(int category_id) {
		return (List<StoryDto>)getSqlSession().selectList("storyQuery.listByCategoryId", category_id);
	}

	public void increaseViewCount(StoryDto story) {
		// TODO Auto-generated method stub
		
	}

}
